#include <stdio.h>

void CreateMenuWindow();//0

void CreatePlayWindow();//1

void CreateInstructionWindow();//2

void CreateEndWindow();//3

int CreatePauseWindow();//CreatePlayWindow函数中调用

//Index窗口索引，判断当前应该打开哪个窗口
int Index = 0;

int main(){
	//窗口函数集成
    void (*p[])() = {
        CreateMenuWindow,
        CreatePlayWindow,
        CreateInstructionWindow,
        CreateEndWindow
    };
    //判断窗口
    while ( Index>=0 && Index<=3 ){
        //调用窗口
        (*p[Index])();
        //窗口内修改Index的值
    }
	return 0;
}